<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateDocumentCategoriesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qh_document_categories', function (Blueprint $table) {
            $table->id();
            $table->text('province')->nullable()->comment('省份数组');
            $table->string('name')->comment('分类名');
            $table->timestamps();
        });

        DB::statement("ALTER TABLE qh_document_categories comment '文档分类'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qh_document_categories');
    }
}
